<!DOCTYPE html>
<html lang="zh">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta http-equiv="X-UA-Compatible" content="ie=edge">
		<title>机构端</title>
        <script src="/Public/static/jquery-2.0.3.min.js"></script>
        <script src="/Public/static/layer/layer.js"></script>
        <link rel="stylesheet" href="__PUBLIC__/Home/css/reset.css">
        <link rel="stylesheet" href="__PUBLIC__/Home/css/style.css">
        <link rel="stylesheet" href="__PUBLIC__/Home/css/page.css" />
	</head>

	<body class="agency_box contentBox pos_rel dpflxr">
		<include file="head" />

		<!-- 2.垂直导航 -->
		<div class="navColumn">
			<a href="{:U('Mechanism/floor_index')}" <if condition="$cur eq 楼盘管理">class="navColumnItem actived dpflxr pos_rel"<else />class="navColumnItem  dpflxr pos_rel"</if> data-type='1'>
				<div class="lineColumn pos_abs"></div>
				<label for="">楼盘管理</label>
				<div class="rightArrow">
				</div>
			</a>
			<a href="{:U('Mechanism/house_type')}"  <if condition="$cur eq 户型管理">class="navColumnItem actived dpflxr pos_rel"<else />class="navColumnItem  dpflxr pos_rel"</if> data-type='2'>
				<div class="lineColumn pos_abs"></div>
				<label for="">户型管理</label>
				<div class="rightArrow">
				</div>
			</a>
			<a href="{:U('Mechanism/build_manage')}" <if condition="$cur eq 楼栋管理">class="navColumnItem actived dpflxr pos_rel"<else />class="navColumnItem  dpflxr pos_rel"</if>  data-type='3'>
				<div class="lineColumn pos_abs"></div>
				<label for="">楼栋管理</label>
				<div class="rightArrow">
				</div>
			</a>
			<a href="{:U('Mechanism/souse_res')}" <if condition="$cur eq 房源管理">class="navColumnItem actived dpflxr pos_rel"<else />class="navColumnItem  dpflxr pos_rel"</if>  data-type='4'>
				<div class="lineColumn pos_abs"></div>
				<label for="">房源管理</label>
				<div class="rightArrow">
				</div>
			</a>
			
		</div>


		
		<!-- 二 3.1 楼盘管理  -->
		<div class="contentArea tabPage actived">
			<!-- 3.1.1 楼盘管理 -->
			<div id="employeeManage">
				<div class="caTitleBox dpflxr">
					<label for="" class="caTitle">户型管理</label>
					
					<div class="dpflxr hWrapper">
						<input type="text" class="searchBox" name="floor_name" value="{$floor_name}" placeholder="请输入楼盘名称"/>
						<div class="caBtn searchBtn" onclick="query()">查询</div>
						<a href="{:U('Mechanism/house_add')}"  class="caBtn ">新增户型</a>
					</div>
				
				</div>
				
				<div class="caTable card">
					<table border="0" width="100%">
							<tbody>
								<tr>
									<th scope="col" width="8%" style="border-top-left-radius: 6px;">编号</th>
									<th scope="col" width="17%">封面图</th>
									<th scope="col" width="10%">户型名称</th>
									<th scope="col" width="13%">所属楼盘</th>
									<th scope="col" width="8%">面积</th>
									<th scope="col" width="12%">参考价</th>
									<th scope="col" width="14%">户型配置</th>
									
									
									<th scope="col" width="17%" style="border-top-right-radius: 6px;box-sizing: border-box;" >操作</th>
								</tr>
								<volist name="list" id="item">
								<tr>
									<td>{$item['id']}</td>
									<td>
										<div class="image">
											<img src="{$item['house_img']}" >
										</div>
									</td>
									<td >{$item['name']}</td>
									<td>{$item['floor_name']}</td>
									
									<td>{$item['house_area']}</td>
									<td>{$item['price']}万元/套</td>
									<td>{$item['house_config']}</td>
									
									
									
									<td style="box-sizing: border-box;" ><a href="{:U('Mechanism/house_add',array('id'=>$item['id']))}">编辑</a><a href="{:U('Mechanism/house_del',array('id'=>$item['id']))}">删除</a></td>
								</tr>	

								</volist>
						
							</tbody>
					</table>
				</div>
			<div class="page">
	            {$_page}
	        </div>
			</div>
		
				
			
		</div>
		
		
	</body>
</html>
<script type="text/javascript">
	    function query(){
	   	var floor_name=$("input[name='floor_name']").val(); 
        var url="{:U('Home/Mechanism/house_type')}";
        url=url+"&floor_name="+floor_name;
        location.href=url;
    }
</script>